package org.timothyb89.pancakes.api;

import com.sun.media.sound.SoftSynthesizer;
import javax.sound.midi.Instrument;
import javax.sound.midi.Synthesizer;

/**
 *
 * @author tim
 */
public class Renderer {

	private Synthesizer synth;
	
	public Renderer() {
		synth = new SoftSynthesizer();
		
		System.out.println("[Debug] Listing instruments...");
		for (Instrument i : synth.getAvailableInstruments()) {
			System.out.println("\t" + i.getName() + "["
					+ "bank=" + i.getPatch().getBank() + ", "
					+ "program=" + i.getPatch().getProgram() + "]");
		}
	}
	
	public static void main(String[] args) {
		Renderer renderer = new Renderer();
	}
	
}
